description = "模板常规默认布局"

[account]
redirect = "account/profile"
paramCode = "code"

[catalog]

[session]
security = "all"

[staticMenu]
code = "mainmenu"
==
use Jason\Ccshop\Controllers\Orders;
function onStart() {
$this['orderStatus'] = (new Orders())->myOrdersStatus();
$orderStatus = (new Orders())->myOrdersStatus();
$cr = 0;//已取消
$op = 0;//已下单
$oa = 0;//已付款
$ob = 0;//已发货
$oall = 0;//全部
foreach($orderStatus as $os){
if($os['status_id'] == 6){
$cr += $os['count'];
}
if($os['status_id'] == 8){
$cr += $os['count'];
}
if($os['status_id'] == 1){
$op += $os['count'];
}
//if($os['status_id'] == 9){
//$op += $os['count'];
//}
if($os['status_id'] == 2){
$oa += $os['count'];
}
if($os['status_id'] == 5){
$ob += $os['count'];
}
$oall += $os['count'];
}
$this['cr']=$cr;
$this['op']=$op;
$this['oa']=$oa;
$this['ob']=$ob;
$this['oall']=$oall;
}
==
{% set appName = catalog.app.name %}
{% set shoppingCart = catalog.getShoppingCart %}
<!DOCTYPE html>
<html lang="ja">
<head>
  <meta charset="utf-8">
  <!--[if IE]>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <![endif]-->
  <meta name="description" content="{% placeholder meta_description default %}{{ catalog.app.meta_description }}{% endplaceholder %}">
  <meta name="keywords" content="{% placeholder meta_keywords default %}{{ catalog.app.meta_keywords }}{% endplaceholder %}">
  <meta name="author" content="{{ catalog.app.domain }}/">
  <meta name="google-site-verification" content="tIqpH2eTOevkDX4hzldojkiCjK-79FAEVzGV20n5ms0" />
  <title>{% placeholder page_title default %}{{ appName }}{% endplaceholder %}</title>
  <!-- Favicons Icon -->
  <link rel="shortcut icon" href="{{ 'assets/img/favicon.ico'|theme }}">
  {% placeholder metaArea %}
  <link rel="canonical" href="{% placeholder pageurl default %}{{ ''|page }}{% endplaceholder %}">
  {% placeholder nextprePageUrl %}
  
  <link rel="stylesheet" href="{{ 'assets/css/font-awesome.min.css'|theme }}">
  <!-- 必要样式 -->
  <link type="text/css" rel="stylesheet" href="{{ 'assets/css/etalage.css'|theme }}">
  <link type="text/css" rel="stylesheet" href="{{ 'assets/css/example3.css'|theme }}">
  <link rel="stylesheet" href="{{ 'assets/css/swiper.min.css'|theme }}">
  <link rel="stylesheet" href="{{ 'assets/css/bootstrap.min.css'|theme }}">
  <link rel="stylesheet" href="{{ 'assets/css/commen.css'|theme }}">
  <link rel="stylesheet" href="{{ 'assets/css/css.css'|theme }}">

  {% styles %}
</head>
<body class="cms-index-index">
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '125718844809609');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=125718844809609&ev=PageView&noscript=1" /></noscript>
<!-- DO NOT MODIFY -->
<!-- End Facebook Pixel Code -->


  {% partial 'common/head' %}

  {% flash %}
    {%if  message == '商品がカートに追加されました'%}
    <script type="text/javascript">
      $(function () {
        $(".cart_content_show").show().delay(2000).hide(0);
      });
    </script>
    {% else %}
    <div class="container">
      <div class="{{ type }}Message alert alert-{{ type == 'error' ? 'danger' : type }}">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        {{ message }}
      </div>
    </div>
    {% endif %}
  {% endflash %}
  {% page %}

  <!--  -->
  <!-- FOOT START -->
  
{% partial 'common/footer' %}

  <div id="loading">
      <div class="loading"><img src="{{ 'assets/img/loadingAnimation.gif'|theme }}" alt=""></div>
  </div>
  <div class="goTop"><img src="{{ 'assets/img/btn_page_top.png'|theme }}" alt=""></div>
  <script type="text/javascript" src="{{ 'assets/js/jquery-1.11.2.min.js'|theme }}"></script>
  <script src="{{ 'assets/js/jquery.etalage.min.js'|theme }}"></script>
  <script type="text/javascript" src="{{ 'assets/js/jquery.lazyload.js'|theme }}"></script>
  <script type="text/javascript" src="{{ 'assets/js/swiper.min.js'|theme }}"></script>
  <script type="text/javascript" src="{{ 'assets/js/bootstrap.min.js'|theme }}"></script>
  <script type="text/javascript" src="{{ 'assets/js/sweetalert2.min.js'|theme }}"></script>
  <script type="text/javascript" src="{{ 'assets/js/main.js'|theme }}"></script>

  <!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-73792739-11"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-73792739-11');
</script>

<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '125718844809609');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=125718844809609&ev=PageView&noscript=1" /></noscript>
<!-- DO NOT MODIFY -->
<!-- End Facebook Pixel Code -->

{% scripts %}
{% framework extras %}


<!-- Google Code for Remarketing Tag -->
<!--
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
-->
<script type="text/javascript">
    {% placeholder google_tag_params %}
</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 825149356;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/825149356/?guid=ON&amp;script=0"/>
</div>
</noscript>


</body>
</html>